package cn.edu.scau.cmi.linhongxin.singleton;

public class Chairman {
	private static Chairman instance;
	private  String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	private  Chairman(String name) {
		this.name=name;
	}
	public static Chairman getInstance(String name) {
		if(instance==null&&!name.equals(null)) {
			instance = new Chairman(name);	
		}
		
		if(instance!=null&&!name.equals(null)) {
			instance.name=name;
		}
		return instance ;
	}

}
